<include file="Public:header"/>
<a href="{:U('/Admin/Vote/add')}">添加投票</a>
<a href="{:U('/Admin/Vote/sendAll')}">一键给没有投票发一封邮件</a>
<table class="table">
    <tr>
        <td>#</td>
        <td>标题</td>
        <td>操作</td>
    </tr>
    <foreach name="votes" item="v">
        <tr>
            <td>{$v.itemid}</td>
            <td>{$v.title}</td>
            <td>
                <a href="">修改</a>
                <a href="{:U('/Admin/Vote/detail')}/id/{$v.itemid}">详细</a>
            </td>
        </tr>
    </foreach>
    <tr>
        <td colspan="3">{$page}</td>
    </tr>
</table>
<include file="Public:footer"/>